//
//  imageUploadTool.h
//  imgeUpDemo
//
//  Created by 方伟 on 16/5/31.
//  Copyright © 2016年 方伟. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "UpYun.h"

#import "TDEmun.h"

@protocol imageUploadToolDelegate <NSObject>

- (void)returnImageURL:(NSString *)imageURL;
- (void)returnError:(NSString *)error;

@end


@interface imageUploadTool : NSObject

@property(nonatomic ,strong) NSString *DEFAULT_BUCKET;//上传图片认证空间
@property(nonatomic ,strong) NSString *DEFAULT_PASSCODE;//上传图片认证空间对应秘钥
@property(nonatomic ,strong) NSString *baseUpYunUrl_worker;//上传图片对应认证空间的基础URL


@property (nonatomic, strong) NSString *imageUrl; //图片的URL

@property (nonatomic, strong)UIImage *selectedImage; //上传图片

@property (nonatomic, strong)NSString *worker_id; //用户ID
@property (nonatomic, assign)UPLOADIMAGETYPE type; //图片存储类型
@property (nonatomic, assign)int index; //同一文件夹区分

@property (nonatomic, assign)id<imageUploadToolDelegate>delegate;



-(void)uplodImage;
@end
